package com.example.dairenkun.neufoodshop.service;

import com.example.dairenkun.neufoodshop.bean.Buy;
import com.example.dairenkun.neufoodshop.bean.Order;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/4/10.
 */

public interface OrderService {
    //显示所有订单
    @GET("getAllUserOrder.do")
    Call<List<Order>> getOrderList(
            @Query("user_id") int  userid


    );
    //购买接口
    @GET("insertOrder.do")
    Call<Buy> Buyorder(
            @Query("user_id") int  userid,
            @Query("food_id") int  foodid,
            @Query("num") int  num,
            @Query("sum") double  sum,
            @Query("suggesttime") String  content
    );
}
